package com.cloud.service.impl;


import com.cloud.dao.T_baseDao;
import com.cloud.model.T_base;
import com.cloud.service.BaseService;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class BaseServiceImpl implements BaseService{

	protected static Logger LOGGER = LoggerFactory.getLogger(BaseServiceImpl.class);
	
	@Autowired
	private T_baseDao baseMapper;


	@Override
	public List<T_base> findAll(){
			List<T_base> list = baseMapper.findAll();
			LOGGER.info("user list："+list);
		return list;
	}
	@Override
	public int updateBase(T_base base){
		return baseMapper.updateBase(base);
	};

	@Override
	public int deleteBase(T_base base){
		return baseMapper.deleteBase(base);
	};

	@Override
	public List<T_base> findTotal(){
		List<T_base> list = baseMapper.findTotal();
		LOGGER.info("user list："+list);
		return list;
	}
}
